You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: 086E read from write-only VERA register at 9F2B (DCSEL=6)
Warning: 0875 read from write-only VERA register at 9F2C (DCSEL=6)
question@indigodarkwolf I don't understand the difference between the "debug" versions of several routines and structures vs. the regular ones. Did I modify the right ones? When should you use the "debug" versions?
(example: debug_state6502.pc vs state6502.pc and vera_debug_video_read() vs vera_video_read())
Most places would want to use state6502, because most places have always used that and the processor emulation didn't always support breakpoints that could trigger prior to an instruction running to completion. But you're doing something special.
debug_state6502 is the "debug copy" of the cpu's state made prior to executing the current operation, so that the CPU can return itself to that state in the event that an instruction halts mid-way due to a breakpoint. Since you're in the middle of an instruction, you probably want to refer to that debug copy since most folks won't easily be able to interpret a debug message that indicates a PC register that isn't aligned with the instruction, or worse, possibly points to the next instruction being executed. Lord knows I've certainly gotten confused by that in the past.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Box16's equivalent of X16Community/x16-emulator#359
Implemented after Wavicle's sleuthing for the cause of the Another World graphics glitch
see forum post https://cx16forum.com/forum/viewtopic.php?p=37485#p37485
example output
Warning: 086E read from write-only VERA register at 9F2B (DCSEL=6)
Warning: 0875 read from write-only VERA register at 9F2C (DCSEL=6)
question @indigodarkwolf I don't understand the difference between the "debug" versions of several routines and structures vs. the regular ones. Did I modify the right ones? When should you use the "debug" versions?
(example:
debug_state6502.pcvsstate6502.pcandvera_debug_video_read()vsvera_video_read())